WP_Statistics\Dependencies\DeviceDetector\DeviceDetector D

Total Complexity 146
Dependencies 27
Dependents 2
Total lines 1,098
Lines of code 449
Logical lines of code 246
Comment lines 347
Methods 46
Properties 17

Methods 46

Method Rating Maintainability Complexity Lines of code
parseDevice()
D
26
56 118
isMobile()
A
49 9 32
getInfoFromUserAgent()
A
46 7 40
parse()
S
57 6 18
parseBot()
S
55 5 21
__call()
S
59 5 13
__construct()
S
54 3 23
isDesktop()
S
64 4 10
parseClient()
S
60 3 14
getCache()
S
72 2 6
setUserAgent()
S
72 2 6
getYamlParser()
S
72 2 6
getClientAttribute()
S
71 2 6
getDeviceName()
S
71 2 6
getOsAttribute()
S
71 2 6
getClient()
S
71 2 6
getOs()
S
71 2 6
setClientHints()
S
72 2 6
matchUserAgent()
S
67 2 7
usesMobileBrowser()
S
75 2 4
parseOs()
S
67 1 8
hasAndroidMobileFragment()
S
76 1 4
hasAndroidVRFragment()
S
76 1 4
setYamlParser()
S
81 1 3
hasDesktopFragment()
S
76 1 4
setCache()
S
81 1 3
hasAndroidTableFragment()
S
76 1 4
getUserAgent()
S
82 1 3
isParsed()
S
82 1 3
discardBotInformation()
S
81 1 3
addClientParser()
S
76 1 4
getClientParsers()
S
82 1 3
addDeviceParser()
S
80 1 3
getDeviceParsers()
S
82 1 3
addBotParser()
S
80 1 3
getBotParsers()
S
82 1 3
skipBotDetection()
S
81 1 3
getBot()
S
82 1 3
isBot()
S
80 1 3
isTouchEnabled()
S
76 1 4
getDevice()
S
82 1 3
getBrand()
S
80 1 3
getBrandName()
S
82 1 3
getModel()
S
82 1 3
getClientHints()
S
82 1 3
reset()
S
66 1 9